package com.turing.post.organization.util;

import java.util.Date;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;
import com.turing.post.util.PCPSWebInput;

/**
 * @author zxp
 * @Jan 3, 2013
 */
@Remote
@Local
public interface MerchantFeeSettlementPolicyBusiness { 
	/**
	 * 新增商户手续费收入结算策略
	 * 
	 * @param mfsp
	 *            商户手续费收入结算策略
	 * @throws PCPSApplicationException
	 */
	public void insertMerchantFeeSettlementPolicyInfo(PCPSWebInput webInput,
			MerchantFeeSettlementPolicy mfsp) throws PCPSApplicationException;

	/**
	 * 修改商户手续费收入结算策略
	 * 
	 * @param mfsp
	 *            商户手续费收入结算策略
	 */
	public void updateMerchantFeeSettlementPolicyInfo(PCPSWebInput webInput,
			MerchantFeeSettlementPolicy mfsp) throws PCPSApplicationException;
	
	/**
	 * 审核商户手续费收入结算策略
	 * 
	 * @param mfsp
	 *            商户手续费收入结算策略
	 */
	public void auditMerchantFeeSettlementPolicyInfo(PCPSWebInput webInput,
			MerchantFeeSettlementPolicy mfsp) throws PCPSApplicationException;
	
	/**
	 * 根据商户号，日期校验结算策略，如通过返回ok否侧返回错误信息
	 * @param merchantno
	 * @param trandate
	 * @return
	 */
	public String checkMerchantFeeSettlementPolicyByMerchantNoAndTrandate(String merchantno,Date trandate);
	
	/**
	 * 根据商户号，日期返回唯一结算策略
	 * @param merchantno
	 * @param trandate
	 * @return
	 */
	
	public Integer getCheckedMerchantFeeSettlementPolicyByMerchantNoAndTrandate(String merchantno,Date trandate);
}
